<div class="row-fluid">
    <div class="hero-unit">
        <h1>KARTU KELUARGA</h1>
        <h2>No. <?php echo $kk[0]->id ?></h2>
    </div>
    <div class="row-fluid">
        <div class="span6">
            <div class="span3">Kepala Keluarga</div>
            <div class="span3"> : <?php echo $kk[0]->nama ?></div>
        </div>
        <div class="span6">
            <div class="span3">Kecamatan</div>
            <div class="span3"> : <?php echo $kk[0]->nama ?></div>
        </div>
    </div>
    <div class="row-fluid">
        <div class="span6">
            <div class="span3">Alamat</div>
            <div class="span3"> : <?php echo $pdk[0]->alamat ?></div>
        </div>
        <div class="span6">
            <div class="span3">Kabupaten/Kota</div>
            <div class="span3"> : <?php echo $kk[0]->nama ?></div>
        </div>
    </div>
    <div class="row-fluid">
        <div class="span6">
            <div class="span3">RT/RW</div>
            <div class="span3"> : <?php echo $pdk[0]->rt; echo '/'.$pdk[0]->rw ?></div>
        </div>
        <div class="span6">
            <div class="span3">Kode Pos</div>
            <div class="span3"> : <?php echo $kk[0]->nama ?></div>
        </div>
    </div>
    <div class="row-fluid">
        <div class="span6">
            <div class="span3">Kelurahan/Desa</div>
            <div class="span3"> : <?php echo $kk[0]->nama ?></div>
        </div>
        <div class="span6">
            <div class="span3">Provinsi</div>
            <div class="span3"> : <?php echo $kk[0]->nama ?></div>
        </div>
    </div>
    <div class="row-fluid">
        <table class="table table-striped table-bordered table-condensed">
            <thead>
                <tr>
                    <th>No.</th>
                    <th>Nama Lengkap</th>
                    <th>NIK</th>
                    <th>Jenis Kelamin</th>
                    <th>Tempat Lahir</th>
                    <th>Tgl Lahir</th>
                    <th>Agama</th>
                    <th>Pendidikan</th>
                    <th>Pekerjaan</th>
                </tr>
                <tr>
                    <th></th>
                    <th>1</th>
                    <th>2</th>
                    <th>3</th>
                    <th>4</th>
                    <th>5</th>
                    <th>6</th>
                    <th>7</th>
                    <th>8</th>
                </tr>
            </thead>
            <tbody>
                <?php $no = 1; ?>
                <?php foreach ($pdk as $pd) : ?>
                    <tr>
                        <td><?php echo $no ?></td>
                        <td><?php echo $pd->nama ?></td>
                        <td><?php echo $pd->nik ?></td>
                        <td><?php echo $pd->sex ?></td>
                        <td><?php echo $pd->tempat_lahir ?></td>
                        <td><?php echo $pd->tgl_lahir ?></td>
                        <td><?php echo $pd->agama ?></td>
                        <td><?php echo $pd->pendidikan ?></td>
                        <td><?php echo $pd->pekerjaan ?></td>
                    </tr>
                    <?php $no++ ?>
                <?php endforeach; ?>
            </tbody>
        </table>
    </div><!--/span-->
    <div class="row-fluid">
        <table class="table table-striped table-bordered table-condensed">
            <thead>
                <tr>
                    <th rowspan="2">No.</th>
                    <th rowspan="2">Status Pernikahan</th>
                    <th rowspan="2">Status Hub. Dalam Keluarga</th>
                    <th rowspan="2">Kewarganegaraan</th>
                    <th colspan="2">Dokumen Imigrasi</th>
                    <th rowspan="2">Ayah</th>
                    <th rowspan="2">Ibu</th>
                    <th rowspan="2">Petugas</th>
                    <th rowspan="2">Action</th>
                </tr>
                <tr>
                    <th>No. Paspor</th>
                    <th>No. KITAS/KITAP</th>
                </tr>
                <tr>
                    <th></th>
                    <th>9</th>
                    <th>10</th>
                    <th>11</th>
                    <th>12</th>
                    <th>13</th>
                    <th>14</th>
                    <th>15</th>
                    <th>16</th>
                    <th>17</th>
                </tr>
            </thead>
            <tbody>
                <?php $no = 1; ?>
                <?php foreach ($pdk as $pd) : ?>
                    <tr>
                        <td><?php echo $no ?></td>
                        <td><?php echo $pd->sta ?></td>
                        <td><?php echo $pd->hub ?></td>
                        <td><?php echo $pd->warga ?></td>
                        <td><?php echo $pd->no_paspor ?></td>
                        <td><?php echo $pd->no_kitas ?></td>
                        <td><?php echo $pd->nama_ayah ?></td>
                        <td><?php echo $pd->nama_ibu ?></td>
                        <td><?php echo $pd->username ?></td>
                        <td><a class="" href="<?php echo $pd->nik ?>" alt="Edit"><i class="icon-pencil tool"></i></a> | <a class="" href="<?php echo $pd->nik ?>" alt="Hapus"><i class="icon-remove tool"></i></a></td>
                    </tr>
                    <?php $no++ ?>
                <?php endforeach; ?>
            </tbody>
        </table>
    </div><!--/span-->
    <div class="row-fluid">
        Dikeluarkan Tanggal : <?php echo $kk[0]->tanggal ?>
    </div>
</div>